The phrase "life is like a box of chocolates" means that life is unpredictable and full of surprises and the unexpected; you never know what will happen next. It suggests that just as you can't know the flavor of a chocolate until you taste it, you can't predict the events of life.
